package com.yy.dao.db;

import java.util.List;

/**
 * User: gongyongfeng2@yy.com
 * Date: 2020/7/2 18 :14
 */
interface IBaseDao<T> {

    long insert(T entity);

    long update(T entity, T where);

    int delete(T where);

    List<T> query(T where);

    List<T> query(T where, String orderBy, Integer startId, Integer limit);
}
